import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '@/views/Login.vue';
import Container from '../views/Container.vue'
import adminHome from '@/views/admin/adminHome.vue';
import peopleGet from '@/views/admin/info/peopleGet.vue';
import announcenment from '@/views/admin/info/announcenment.vue';
import preview from '@/views/admin/preview/preview.vue';
import schedule from '@/views/admin/preview/schedule.vue';
Vue.use(VueRouter)

const routes = [
  {
    path:"/",
    name:"LoginIn",
    component:Login
  },
  {
    path: '/contain',
    name: 'Container',
    component: Container,
    children:[
      {
        path:"/admin",
        name:"admin-home",
        component:adminHome
      },
      {
        path:"/preview",
        name:"preview",
        component:preview
      },
      {
        path:"/schedule",
        name:"schedule",
        component:schedule
      },
      {
        path:"/announcenment",
        name:"announcenment",
        component:announcenment
      },
      {
        path:"/peopleGet",
        name:"/people-get",
        component:peopleGet
      }
    ]
  }
]

const router = new VueRouter({
  base: '/elebuss/',
  routes
})

export default router
